﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ClassStudent
{
    class Program
    {
        static void Main(string[] args)
        {
            
            int count = 0;
            string choice = "yes";
            List<Student> students = new List<Student>();
            
                do
                {
                    Student first = new Student();
                    first.FillValuesOfStudents();
                    Console.WriteLine("Хотите добавить еще одного студента: ");
                    choice = Console.ReadLine();
                    students.Add(first);
                    count++;
                }
                while (choice == "yes");
            
            
            PrintLastnameShortnameOfStudentsWtithMiddleScore(students, count);
            Console.ReadKey();

        }
         
        static void PrintLastnameShortnameOfStudentsWtithMiddleScore(List<Student> students, int count)
        {
            for (int i = 0; i < count; i++)
            {
                if (students[i].FindMiddleMarkOfStudent() > 67)
                    students[i].PrintlastNameShortName();
            }
        }
    }

    
}
